<?php
	App::uses('I18nRoute', 'I18n.Routing/Route');
	Router::connect('/', array('controller' => 'pages', 'action' => 'home'), array('routeClass' => 'I18nRoute'));
	Router::connect('/admin', array('admin'=>true,'controller' => 'users', 'action' => 'index'), array('routeClass' => 'I18nRoute'));
	Router::connect('/admin/login.html', array('admin'=>true,'controller' => 'users', 'action' => 'login'), array('routeClass' => 'I18nRoute'));
	Router::connect('/admin/logout.html', array("admin"=>true,'controller' => 'users', 'action' => 'logout'), array('routeClass' => 'I18nRoute'));
	Router::connect('/xoa-dich-vu/:id-:slug', array('controller' => 'services', 'action' => 'delete'), array('routeClass' => 'I18nRoute'),array('pass' => array('id','slug'), 'id' => '[0-9]+'));
	Router::connect('/sua-dich-vu/:id-:slug', array('controller' => 'services', 'action' => 'edit'), array('routeClass' => 'I18nRoute'),array('pass' => array('id','slug'),'id' => '[0-9]+'));
	Router::connect('/nhap-kho-dich-vu/:id-:slug', array('controller' => 'importServices', 'action' => 'add'), array('routeClass' => 'I18nRoute'),array('pass' => array('id','slug'),'id' => '[0-9]+'));
	Router::connect('/dich-vu.html', array('controller' => 'services', 'action' => 'index'), array('routeClass' => 'I18nRoute'));
	Router::connect('/them-dich-vu.html', array('controller' => 'services', 'action' => 'add'), array('routeClass' => 'I18nRoute'));
	Router::connect('/tro-giup.html', array('controller' => 'news', 'action' => 'index'), array('routeClass' => 'I18nRoute'));
	Router::connect('/them-tro-giup.html', array('controller' => 'news', 'action' => 'add'), array('routeClass' => 'I18nRoute'));
	Router::connect('/muc-luong-nhan-vien.html', array('controller' => 'users', 'action' => 'salary'), array('routeClass' => 'I18nRoute'));
	Router::connect('/nhom-nhan-vien.html', array('controller' => 'groups', 'action' => 'index'), array('routeClass' => 'I18nRoute'));
	Router::connect('/them-nhom-nhan-vien.html', array('controller' => 'groups', 'action' => 'add'), array('routeClass' => 'I18nRoute'));
	Router::connect('/sua-nhom-nhan-vien/:id-:slug', array('controller' => 'groups', 'action' => 'edit'), array('routeClass' => 'I18nRoute'),array('pass' => array('id','slug'), 'id' => '[0-9]+'));
	Router::connect('/xoa-nhom-nhan-vien/:id-:slug', array('controller' => 'groups', 'action' => 'delete'), array('routeClass' => 'I18nRoute'),array('pass' => array('id','slug'), 'id' => '[0-9]+'));
	Router::connect('/quan-ly-nhan-vien.html', array('controller' => 'users', 'action' => 'index'), array('routeClass' => 'I18nRoute'));
	Router::connect('/them-moi-nhan-vien.html', array('controller' => 'Users', 'action' => 'add'), array('routeClass' => 'I18nRoute'));
	Router::connect('/sua-thong-tin-nhan-vien/:id-:slug', array('controller' => 'users', 'action' => 'edit'), array('routeClass' => 'I18nRoute'),array('pass' => array('id','slug'), 'id' => '[0-9]+'));
	Router::connect('/xoa-nhan-vien/:id-:slug', array('controller' => 'users', 'action' => 'delete'), array('routeClass' => 'I18nRoute'),array('pass' => array('id','slug'), 'id' => '[0-9]+'));
	Router::connect('/them-phu-cap-nhan-vien/:id-:slug', array('controller' => 'PhuCaps', 'action' => 'add'), array('routeClass' => 'I18nRoute'),array('pass' => array('id','slug'), 'id' => '[0-9]+'));
	Router::connect('/tam-ung-luong/:id-:slug', array('controller' => 'tamungs', 'action' => 'add'), array('routeClass' => 'I18nRoute'),array('pass' => array('id','slug'), 'id' => '[0-9]+'));
	Router::connect('/tien-khau-tru/:id-:slug', array('controller' => 'khautruses', 'action' => 'add'), array('routeClass' => 'I18nRoute'),array('pass' => array('id','slug'), 'id' => '[0-9]+'));
	Router::connect('/nhap-ngay-nhan-vien-nghi/:id-:slug', array('controller' => 'NgayNghis', 'action' => 'add'), array('routeClass' => 'I18nRoute'),array('pass' => array('id','slug'), 'id' => '[0-9]+'));
	//Router::connect('/them-tro-giup.html', array('controller' => 'news', 'action' => 'add'), array('routeClass' => 'I18nRoute'));
	//Router::connect('/admin/nguoi-dung/index.html', array("admin"=>true,'controller' => 'users', 'action' => 'index'));
	//Router::connect('/admin/nguoi-dung/add.html', array("admin"=>true,'controller' => 'users', 'action' => 'add'));
	Router::connect('/acl', array('admin'=>true,'plugin' => 'acl', 'controller' => 'acl', 'action' => 'index'), array('routeClass' => 'I18nRoute'));































	CakePlugin::routes();
	require CAKE . 'Config' . DS . 'routes.php';
